Integrand size = 13, antiderivative size = 40 \[ \int \frac {\csc ^5(x)}{i+\tan (x)} \, dx=-\frac {1}{8} i \text {arctanh}(\cos (x))-\frac {1}{8} i \cot (x) \csc (x)-\frac {\csc ^3(x)}{3}+\frac {1}{4} i \cot (x) \csc ^3(x) \]
[Out]
Time = 0.18 (sec) , antiderivative size = 40, normalized size of antiderivative = 1.00, number of steps used = 9, number of rules used = 8, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.615, Rules used = {3599, 3187, 3186, 2686, 30, 2691, 3853, 3855} \[ \int \frac {\csc ^5(x)}{i+\tan (x)} \, dx=-\frac {1}{8} i \text {arctanh}(\cos (x))-\frac {\csc ^3(x)}{3}+\frac {1}{4} i \cot (x) \csc ^3(x)-\frac {1}{8} i \cot (x) \csc (x) \]
[In]
[Out]
Rule 30
Rule 2686
Rule 2691
Rule 3186
Rule 3187
Rule 3599
Rule 3853
Rule 3855
Rubi steps \begin{align*} \text {integral}& = \int \frac {\cot (x) \csc ^4(x)}{i \cos (x)+\sin (x)} \, dx \\ & = -\left (i \int \cot (x) \csc ^4(x) (\cos (x)+i \sin (x)) \, dx\right ) \\ & = -\left (i \int \left (i \cot (x) \csc ^3(x)+\cot ^2(x) \csc ^3(x)\right ) \, dx\right ) \\ & = -\left (i \int \cot ^2(x) \csc ^3(x) \, dx\right )+\int \cot (x) \csc ^3(x) \, dx \\ & = \frac {1}{4} i \cot (x) \csc ^3(x)+\frac {1}{4} i \int \csc ^3(x) \, dx-\text {Subst}\left (\int x^2 \, dx,x,\csc (x)\right ) \\ & = -\frac {1}{8} i \cot (x) \csc (x)-\frac {\csc ^3(x)}{3}+\frac {1}{4} i \cot (x) \csc ^3(x)+\frac {1}{8} i \int \csc (x) \, dx \\ & = -\frac {1}{8} i \text {arctanh}(\cos (x))-\frac {1}{8} i \cot (x) \csc (x)-\frac {\csc ^3(x)}{3}+\frac {1}{4} i \cot (x) \csc ^3(x) \\ \end{align*}
Both result and optimal contain complex but leaf count is larger than twice the leaf count of optimal. \(139\) vs. \(2(40)=80\).
Time = 0.04 (sec) , antiderivative size = 139, normalized size of antiderivative = 3.48 \[ \int \frac {\csc ^5(x)}{i+\tan (x)} \, dx=-\frac {1}{12} \cot \left (\frac {x}{2}\right )-\frac {1}{32} i \csc ^2\left (\frac {x}{2}\right )-\frac {1}{24} \cot \left (\frac {x}{2}\right ) \csc ^2\left (\frac {x}{2}\right )+\frac {1}{64} i \csc ^4\left (\frac {x}{2}\right )-\frac {1}{8} i \log \left (\cos \left (\frac {x}{2}\right )\right )+\frac {1}{8} i \log \left (\sin \left (\frac {x}{2}\right )\right )+\frac {1}{32} i \sec ^2\left (\frac {x}{2}\right )-\frac {1}{64} i \sec ^4\left (\frac {x}{2}\right )-\frac {1}{12} \tan \left (\frac {x}{2}\right )-\frac {1}{24} \sec ^2\left (\frac {x}{2}\right ) \tan \left (\frac {x}{2}\right ) \]
[In]
[Out]
Time = 131.16 (sec) , antiderivative size = 58, normalized size of antiderivative = 1.45
method | result | size |
default | \(-\frac {\tan \left (\frac {x}{2}\right )}{8}-\frac {i \left (\tan ^{4}\left (\frac {x}{2}\right )\right )}{64}-\frac {\left (\tan ^{3}\left (\frac {x}{2}\right )\right )}{24}+\frac {i}{64 \tan \left (\frac {x}{2}\right )^{4}}-\frac {1}{24 \tan \left (\frac {x}{2}\right )^{3}}+\frac {i \ln \left (\tan \left (\frac {x}{2}\right )\right )}{8}-\frac {1}{8 \tan \left (\frac {x}{2}\right )}\) | \(58\) |
risch | \(\frac {i \left (3 \,{\mathrm e}^{7 i x}+53 \,{\mathrm e}^{5 i x}-11 \,{\mathrm e}^{3 i x}+3 \,{\mathrm e}^{i x}\right )}{12 \left ({\mathrm e}^{2 i x}-1\right )^{4}}+\frac {i \ln \left ({\mathrm e}^{i x}-1\right )}{8}-\frac {i \ln \left ({\mathrm e}^{i x}+1\right )}{8}\) | \(65\) |
[In]
[Out]
Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 123 vs. \(2 (26) = 52\).
Time = 0.25 (sec) , antiderivative size = 123, normalized size of antiderivative = 3.08 \[ \int \frac {\csc ^5(x)}{i+\tan (x)} \, dx=-\frac {3 \, {\left (i \, e^{\left (8 i \, x\right )} - 4 i \, e^{\left (6 i \, x\right )} + 6 i \, e^{\left (4 i \, x\right )} - 4 i \, e^{\left (2 i \, x\right )} + i\right )} \log \left (e^{\left (i \, x\right )} + 1\right ) + 3 \, {\left (-i \, e^{\left (8 i \, x\right )} + 4 i \, e^{\left (6 i \, x\right )} - 6 i \, e^{\left (4 i \, x\right )} + 4 i \, e^{\left (2 i \, x\right )} - i\right )} \log \left (e^{\left (i \, x\right )} - 1\right ) - 6 i \, e^{\left (7 i \, x\right )} - 106 i \, e^{\left (5 i \, x\right )} + 22 i \, e^{\left (3 i \, x\right )} - 6 i \, e^{\left (i \, x\right )}}{24 \, {\left (e^{\left (8 i \, x\right )} - 4 \, e^{\left (6 i \, x\right )} + 6 \, e^{\left (4 i \, x\right )} - 4 \, e^{\left (2 i \, x\right )} + 1\right )}} \]
[In]
[Out]
\[ \int \frac {\csc ^5(x)}{i+\tan (x)} \, dx=\int \frac {\csc ^{5}{\left (x \right )}}{\tan {\left (x \right )} + i}\, dx \]
[In]
[Out]
Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 83 vs. \(2 (26) = 52\).
Time = 0.21 (sec) , antiderivative size = 83, normalized size of antiderivative = 2.08 \[ \int \frac {\csc ^5(x)}{i+\tan (x)} \, dx=-\frac {{\left (\frac {8 \, \sin \left (x\right )}{\cos \left (x\right ) + 1} + \frac {24 \, \sin \left (x\right )^{3}}{{\left (\cos \left (x\right ) + 1\right )}^{3}} - 3 i\right )} {\left (\cos \left (x\right ) + 1\right )}^{4}}{192 \, \sin \left (x\right )^{4}} - \frac {\sin \left (x\right )}{8 \, {\left (\cos \left (x\right ) + 1\right )}} - \frac {\sin \left (x\right )^{3}}{24 \, {\left (\cos \left (x\right ) + 1\right )}^{3}} - \frac {i \, \sin \left (x\right )^{4}}{64 \, {\left (\cos \left (x\right ) + 1\right )}^{4}} + \frac {1}{8} i \, \log \left (\frac {\sin \left (x\right )}{\cos \left (x\right ) + 1}\right ) \]
[In]
[Out]
Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 62 vs. \(2 (26) = 52\).
Time = 0.33 (sec) , antiderivative size = 62, normalized size of antiderivative = 1.55 \[ \int \frac {\csc ^5(x)}{i+\tan (x)} \, dx=-\frac {1}{64} i \, \tan \left (\frac {1}{2} \, x\right )^{4} - \frac {1}{24} \, \tan \left (\frac {1}{2} \, x\right )^{3} - \frac {50 i \, \tan \left (\frac {1}{2} \, x\right )^{4} + 24 \, \tan \left (\frac {1}{2} \, x\right )^{3} + 8 \, \tan \left (\frac {1}{2} \, x\right ) - 3 i}{192 \, \tan \left (\frac {1}{2} \, x\right )^{4}} + \frac {1}{8} i \, \log \left (\tan \left (\frac {1}{2} \, x\right )\right ) - \frac {1}{8} \, \tan \left (\frac {1}{2} \, x\right ) \]
[In]
[Out]
Time = 5.00 (sec) , antiderivative size = 57, normalized size of antiderivative = 1.42 \[ \int \frac {\csc ^5(x)}{i+\tan (x)} \, dx=-\frac {\mathrm {tan}\left (\frac {x}{2}\right )}{8}+\frac {\ln \left (\mathrm {tan}\left (\frac {x}{2}\right )\right )\,1{}\mathrm {i}}{8}-\frac {2\,{\mathrm {tan}\left (\frac {x}{2}\right )}^3+\frac {2\,\mathrm {tan}\left (\frac {x}{2}\right )}{3}-\frac {1}{4}{}\mathrm {i}}{16\,{\mathrm {tan}\left (\frac {x}{2}\right )}^4}-\frac {{\mathrm {tan}\left (\frac {x}{2}\right )}^3}{24}-\frac {{\mathrm {tan}\left (\frac {x}{2}\right )}^4\,1{}\mathrm {i}}{64} \]
[In]
[Out]